'use strict';

var React = require('react');
var Router = require('react-router'); 
var RouteHandler = Router.RouteHandler;
var Tab = require('../modules/tab.jsx');


var CenterViewComponent = React.createClass({
  render: function() {
    var  tabkey =[
          {name:'服务设置',to:'CenterService' , parent : 'center'},
          {name:'银行账户',to:'CenterBank'},
          {name:'收益提现',to:'CenterProfit'},
          {name:'认证信息',to:'CenterAuth'},
          {name:'修改头像',to:'CenterHead'},
          {name:'修改密码',to:'CenterPwd'},
          {name:'邀请医生',to:'CenterDoctor'}
    ];
    return (
      /* jshint ignore:start */
      	     <div>
                      <Tab data={tabkey}></Tab>
                      <RouteHandler {...this.props} />
             </div>
      /* jshint ignore:end */
    );
  }
});

module.exports = CenterViewComponent;